//config mysql
var mysql = require('mysql')

// 配置开发环境
const config = require('config')

var connection = mysql.createPool(
   {
    host            :config.dbconfig.host,
    user            : config.dbconfig.user,
    password        : config.dbconfig.password,
    database        : config.dbconfig.database
   }
);

module.exports = connection